package smsapi.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 短信提交响应
 **/
@JsonInclude(JsonInclude.Include.NON_NULL) 
public class SentSmsRes   {
  
  private Long smsId = null;
  private List<Long> numberIds = new ArrayList<>();
  private String msgId = null;
  private OffsetDateTime sendTime = null;
  private Boolean success = null;
  private Long linkID = null;

  public SentSmsRes () {

  }

  public SentSmsRes (Long smsId, List<Long> numberIds, String msgId, OffsetDateTime sendTime, Boolean success, Long linkID) {
    this.smsId = smsId;
    this.numberIds = numberIds;
    this.msgId = msgId;
    this.sendTime = sendTime;
    this.success = success;
    this.linkID = linkID;
  }

    
  @JsonProperty("SmsId")
  public Long getSmsId() {
    return smsId;
  }
  public void setSmsId(Long smsId) {
    this.smsId = smsId;
  }

    
  @JsonProperty("NumberIds")
  public List<Long> getNumberIds() {
    return numberIds;
  }
  public void setNumberIds(List<Long> numberIds) {
    this.numberIds = numberIds;
  }

    
  @JsonProperty("MsgId")
  public String getMsgId() {
    return msgId;
  }
  public void setMsgId(String msgId) {
    this.msgId = msgId;
  }

    
  @JsonProperty("SendTime")
  public OffsetDateTime getSendTime() {
    return sendTime;
  }
  public void setSendTime(OffsetDateTime sendTime) {
    this.sendTime = sendTime;
  }

    
  @JsonProperty("Success")
  public Boolean isSuccess() {
    return success;
  }
  public void setSuccess(Boolean success) {
    this.success = success;
  }

    
  @JsonProperty("LinkID")
  public Long getLinkID() {
    return linkID;
  }
  public void setLinkID(Long linkID) {
    this.linkID = linkID;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SentSmsRes sentSmsRes = (SentSmsRes) o;
    return Objects.equals(smsId, sentSmsRes.smsId) &&
        Objects.equals(numberIds, sentSmsRes.numberIds) &&
        Objects.equals(msgId, sentSmsRes.msgId) &&
        Objects.equals(sendTime, sentSmsRes.sendTime) &&
        Objects.equals(success, sentSmsRes.success) &&
        Objects.equals(linkID, sentSmsRes.linkID);
  }

  @Override
  public int hashCode() {
    return Objects.hash(smsId, numberIds, msgId, sendTime, success, linkID);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SentSmsRes {\n");
    
    sb.append("    smsId: ").append(toIndentedString(smsId)).append("\n");
    sb.append("    numberIds: ").append(toIndentedString(numberIds)).append("\n");
    sb.append("    msgId: ").append(toIndentedString(msgId)).append("\n");
    sb.append("    sendTime: ").append(toIndentedString(sendTime)).append("\n");
    sb.append("    success: ").append(toIndentedString(success)).append("\n");
    sb.append("    linkID: ").append(toIndentedString(linkID)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}
